package org.PropertyManageMentSystem.Data;

import java.sql.Time;
import java.sql.Timestamp;

public class Schedule {
    public enum ScheduleState{
        unaccept,
        accept,
        reSchedule,
        finish
        }
    private Long scheduleId;
    private Long workerId;
    private Long taskId;
    private Long schedulerId;
    private Timestamp createTime;
    private ScheduleState state;

    public Long getScheduleId() {
        return scheduleId;
    }

    public Long getWorkerId() {
        return workerId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public Long getSchedulerId() {
        return schedulerId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public ScheduleState getState() {
        return state;
    }

    public void setState(ScheduleState state) {
        this.state = state;
    }

    public Schedule(Long scheduleId, Long workerId, Long taskId, Long schedulerId, Timestamp createTime, ScheduleState state) {
        this.scheduleId = scheduleId;
        this.workerId = workerId;
        this.taskId = taskId;
        this.schedulerId = schedulerId;
        this.createTime = createTime;
        this.state = state;
    }
}
